package com.xhx.dao.alluse;

import com.xhx.config.DataSource;
import com.xhx.model.animals.Dog;
import com.xhx.model.utils.PagingModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface DogMapper {
    //@DataSource("mysqlDataSource")
    Map findDog(Integer id);
    //@DataSource("mysql2DataSource")
    Map findADog(Integer id);
    int addDog(Dog dog);
    int updDog(Dog dog);
    int delDog(Integer id);
    List<Dog> findDogs(@Param("pagingModel") PagingModel pagingModel, @Param("filterModel") Dog filterModel);
}
